//
//  SmallDecisionsPlateView.h
//  SmallDecisions
//
//  Created by 李付雄 on 2025/6/14.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class SmallDecisionsPlateView;
@protocol SmallDecisionsPlateViewDelegate <NSObject>

@optional
- (void)plateViewDidBegin:(SmallDecisionsPlateView *)plateView;
- (void)plateViewDidFinish:(SmallDecisionsPlateView *)plateView target:(NSInteger)target;

@end

@interface SmallDecisionsPlateView : UIView

@property (nonatomic, weak) id<SmallDecisionsPlateViewDelegate>delegate;
@property (nonatomic, strong) UIImageView *bgImageView;
@property (nonatomic, copy) NSArray *data;

- (void)startPlateAnimationWithTargetIndex:(NSInteger)targetIndex;
- (void)startPlateDraw;
- (void)resetPlate;


@end

NS_ASSUME_NONNULL_END
